import Http from "../Http";
import qs from "qs";

// 用户登录相关
export default {
    login(phone, password) {
        return Http.post("/crs/user/login", qs.stringify({
            phone, password
        }))
    },
    adminLogin(username, password) {
        return Http.post("/admin/login", qs.stringify({
            username, password
        }))
    },
    logout() {
        return Http.post("/user/logout")
    },

}
